
<!-- start navbar -->
<div class="navbar navbar-static-top navbar-holo">
    {#<div class="navbar-collapse collapse">#}
    <div class="">
        <div class="col-md-3 col-xs-3 wx-brand">
            <i class="fa fa-leaf green"></i>{{ lang('proj_title') }}
        </div>

        {% if login_page is not defined %}

            <ul class="wx-user-log-icons col-md-2 pull-right">
                <li>
                    <div class="dropdown">
                                <span class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-user"></i><span class="wx-login-name">{{ _session.username }}</span>
                                    <span class="caret"></span>
                                </span>
                        <ul class="dropdown-menu">
                            <li><a href="/home">监控列表</a></li>
                            <li role="separator" class="divider"></li>

                            {% if _session.is_admin is not sameas(true) %}
                                <li><a href="/user/reset_pwd">修改密码</a></li>
                            {% endif %}

                            {% if _session.is_admin is sameas(true) %}
                                <li><a href="/user">用户管理</a></li>
                            {% endif %}

                            <li role="separator" class="divider"></li>
                            <li id="btn_logout">
                                <a href="javascript:void(0);">{{ lang('logout') }}</a>
                            </li>
                        </ul>
                    </div>
                </li>

            </ul>
        {% endif %}

    </div>

</div>
<!--/ end navbar -->